<?php
namespace app\index\controller;
use think\Db;
class User
{
    // 这是查找指定类型的新闻
	public function userLogin(){
    $params = $_GET;
		$data['data'] = Db::table('website_user')->where('user_name',$params['userName'])->where('user_password',$params['passWord'])->select();
		echo json_encode($data);
	}
	
}
